@(projectId: Long, form: Form[TestSuiteWizard.Step2], resources: List[Resource])

@import play.i18n._

@css = {
	<link rel="stylesheet" type="text/css" href="@routes.Assets.at("css/testsuites/wizard.min.css")" />
}

@main(Messages.get("view.testsuites.page.wizard.add.step2.title"), css) {
	
	<div class="resource-form resource-form-2-column">
		@helper.form(action = routes.TestSuites.submitCreateTestSuite(projectId, 2)) { 
			
			<div class="column">

			@for((resource, index) <- resources.zipWithIndex) {
				<input type="checkbox" id="cb-@resource.getId()" name="resources[@index]" class="" value="@resource.getId()" /> <label for="cb-@resource.getId()">@resource.getName()</label>
			}
				
			</div>
			
			<div class="column-wide">
				<button type="submit" name="action" value="previous">&laquo; @Messages.get("view.testsuites.wizard.button.previous.label")</button>
				<button type="submit" name="action" value="next">@Messages.get("view.testsuites.wizard.button.next.label") &raquo;</button>
			</div>
			
		}
		
		<div class="clear-right"></div>
	</div>
	
}
